package com.wuhunyu.client;

import com.wuhunyu.client.err.ServiceUserClientErr;
import com.wuhunyu.commonutils.result.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 用户中心模块
 *
 * @author wuhunyu
 * @version 1.0
 * @date 2021-01-27 15:38
 */
@Component
@FeignClient(name = "service-ucenter", fallback = ServiceUserClientErr.class)
public interface ServiceUserClient {

    /**
     * 统计指定时间用户注册的人数
     *
     * @param date
     * @return
     */
    @PostMapping("/userCenterMember/countRegister/{date}")
    public CommonResult countRegister(@PathVariable("date") String date);

}
